//
//  BottomCollectionViewCell.m
//  HoldingBarrage
//
//  Created by 魏忠海 on 2018/8/21.
//  Copyright © 2018年 lingji001. All rights reserved.
//

#import "BottomCollectionViewCell.h"

@interface BottomCollectionViewCell ()



@end

@implementation BottomCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self initUI];
        [self configUI];
    }
    return self;
}

#pragma mark 初始化UI控件
- (void)initUI{
    self.smallView = [UIView new];
    self.smallView.layer.borderWidth = 1;
    [self.contentView addSubview:self.smallView];
    self.contentLabel = [UILabel new];
    self.contentLabel.textColor = [UIColor whiteColor];
    [self.contentView addSubview:self.contentLabel];
}

#pragma mark 为UI控件添加约束
- (void)configUI{
    [self.smallView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.right.left.bottom.mas_offset(0);
    }];
    [self.contentLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.mas_offset(0);
    }];
}

- (void)setSelected:(BOOL)selected{
    if (selected) {
        self.smallView.layer.borderColor = [UIColor whiteColor].CGColor;
    }else{
        self.smallView.layer.borderColor = [UIColor clearColor].CGColor;
    }
}

@end
